package com.scott.dubbo.service.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.scott.dubbo.service.CalService;

@Service(version = "${dubbo.provider.version}",
        application = "${dubbo.application.id}",
        protocol = "${dubbo.protocol.id}",
        registry = "${dubbo.registry.id}")

public class CalServiceImpl implements CalService {
    @Override
    public Integer add(Integer x, Integer y) {
        Integer sum = x +y;
        System.out.println("sum="+sum);
        return sum;
    }
}
